package com.csw.tourismInformation.dao;

import java.io.File;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.csw.tourismInformation.entity.Scenic;

/**
 * Created by Administrator on 2019/10/23.
 */
@Mapper
public interface ScenicDao {
	Integer queryCount(@Param("pid") Integer pid);

	List<Scenic> queryAllAndByPage(@Param("firstIndex") Integer firstIndex, @Param("lastIndex") Integer lastIndex,
			@Param("pid") Integer pid);

	void deleteView(@Param("pid") Integer pid);

	Scenic queryById(@Param("pid") Integer pid);

	void updateView(@Param("scenic") Scenic scenic, @Param("cover") File cover);

	void addView(@Param("scenic") Scenic scenic);
}
